public class ArrayDemo {
    public static void main(String[] args) {
        String str = "60,120,30,90,180";
        String[] strArr = str.split(",");

        double[] arr = new double[strArr.length];
        for (int i = 0; i < strArr.length; i++) {
            arr[i] = Double.parseDouble(strArr[i]);
        }

        java.util.Arrays.sort(arr);

        double radian = Math.toRadians(arr[0]);
        double sinValue = Math.sin(radian);

        System.out.println("排序后的数组: "+java.util.Arrays.toString(arr));
        System.out.println("arr[0](" +"度)的 sin 值:" +sinValue);
    }
}
